package com.xuecheng.framework.exception;

import com.xuecheng.framework.model.response.ResultCode;

/**
 * @Author Andrew Yang
 * @ClassName ExceptionCast
 * @Description 异常抛出类
 * @Package com.xuecheng.framework.exception
 * @create 2020-01-15 00:49
 */
public class ExceptionCast {
    /**
     * @Method: cast
     * @Author: Andrew Yang
     * @Date: 2020/1/15 0:50
     * @param resultCode
     * @Return void
     * @Description: 使用此静态方法抛出自定义异常
     */
    public static void cast(ResultCode resultCode) {
        throw new CustomException(resultCode);
    }
}
